package com.lj.queue.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.lj.mp.standard.entity.SysStandardEntity;
import java.time.LocalDateTime;
import com.lj.queue.enums.TimeUnits;

/**
 * <p>
 * 延迟队列数据表
 * </p>
 *
 * @author lj
 * @since 2025-07-18 11:19:13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("queue_delay_queue_meta")
public class DelayQueueMeta extends SysStandardEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 队列名称
     */
    private String name;

    /**
     * 最后加载时间
     */
    private LocalDateTime lastLoadTime;

    /**
     * 预加载间隔
     */
    private Long preloadDistance;

    /**
     * 预加载时长
     */
    private Long preloadDuration;

    /**
     * 时间单位
     */
    private TimeUnits timeUnit;
}
